from django.urls import path, include
from rest_framework.routers import DefaultRouter
from . import views

app_name = 'todos'

# 创建路由器并注册视图集
router = DefaultRouter()
router.register('', views.TodoViewSet, basename='todo')

urlpatterns = [
    path('', include(router.urls)),
]
